import request, {
	baseURL
} from '@utils/request.js'

let routeUrl = {
	login: "/api/user/login", //登录
	shiyan_dk: "/api/Yuzhong/shiyan_dk", //添加实验地块
	bumen_lists: "/api/yuzhong/bumen_lists", //实验地块列表筛选-所属部门
	shidian_lists: "/api/yuzhong/shidian_lists", //实验地块列表筛选-所属试点
	shiyan_lists: "/api/yuzhong/shiyan_lists", //实验地块列表
	shiyan_user: "/api/yuzhong/shiyan_user", //更改勾选的实验
	shuju_lists: "/api/yuzhong/shuju_lists", //地块数据-列表
	shuju_add_del: "/api/yuzhong/shuju_add_del", //地块数据-勾选/取消勾选
	shiyan_detail: "/api/yuzhong/shiyan_detail", //实验详情-育种
	shiyan_wd: "/api/yuzhong/shiyan_wd", //实验详情-文档列表
	shuju_biaoge: "/api/yuzhong/shuju_biaoge", //实验详情-表格-列表
	shujucontent_add: "/api/yuzhong/shujucontent_add", //实验详情-添加实验数据信息
	shujucontent_detail: "/api/yuzhong/shujucontent_detail", //实验详情-实验数据信息
	shiyan_suo: "/api/yuzhong/shiyan_suo", //实验详情-加锁/解锁
	ss_one: "/api/yuzhong/ss_one", //搜索数据类型为文本和数字的
	shiyanqkuser_list: "/api/yuzhong/shiyanqkuser_list", //实验方案信息下拉进入的列表
	shiyanqkuser: "/api/yuzhong/shiyanqkuser", //实验方案信息下拉保存
	export: "/api/yuzhong/export", //导出EXCEL
	
	article: "/api/index/article", //
	upload: "/api/index/upload", //
	shuju_lists_weigh: "/api/yuzhong/shuju_lists_weigh", //排序
}
export function shuju_lists_weighApi(data) {
	return request({
		url: routeUrl.shuju_lists_weigh,
		method: 'GET',
		data,
	})
}
export function loginApi(data) {
	return request({
		url: routeUrl.login,
		method: 'POST',
		data,
	})
}
export function articleApi(data) {
	return request({
		url: routeUrl.article,
		method: 'GET',
		data,
	})
}
export function shiyan_dkApi(data) {
	return request({
		url: routeUrl.shiyan_dk,
		method: 'GET',
		data,
	})
}
export function bumen_listsApi(data) {
	return request({
		url: routeUrl.bumen_lists,
		method: 'GET',
		data,
	})
}
export function shidian_listsApi(data) {
	return request({
		url: routeUrl.shidian_lists,
		method: 'GET',
		data,
	})
}
export function shiyan_listsApi(data) {
	return request({
		url: routeUrl.shiyan_lists,
		method: 'GET',
		data,
	})
}
export function shiyan_userApi(data) {
	return request({
		url: routeUrl.shiyan_user,
		method: 'GET',
		data,
	})
}
export function shuju_listsApi(data) {
	return request({
		url: routeUrl.shuju_lists,
		method: 'GET',
		data,
	})
}
export function shuju_add_delApi(data) {
	return request({
		url: routeUrl.shuju_add_del,
		method: 'GET',
		data,
	})
}
export function shiyan_detailApi(data) {
	return request({
		url: routeUrl.shiyan_detail,
		method: 'GET',
		data,
	})
}
export function shiyan_wdApi(data) {
	return request({
		url: routeUrl.shiyan_wd,
		method: 'GET',
		data,
	})
}
export function shuju_biaogeApi(data) {
	return request({
		url: routeUrl.shuju_biaoge,
		method: 'GET',
		data,
	})
}
export function shujucontent_addApi(data) {
	return request({
		url: routeUrl.shujucontent_add,
		method: 'GET',
		data,
	})
}
export function shujucontent_detailApi(data) {
	return request({
		url: routeUrl.shujucontent_detail,
		method: 'GET',
		data,
	})
}
export function shiyan_suoApi(data) {
	return request({
		url: routeUrl.shiyan_suo,
		method: 'GET',
		data,
	})
}
export function ss_oneApi(data) {
	return request({
		url: routeUrl.ss_one,
		method: 'GET',
		data,
	})
}
export function shiyanqkuser_listApi(data) {
	return request({
		url: routeUrl.shiyanqkuser_list,
		method: 'GET',
		data,
	})
}
export function shiyanqkuserApi(data) {
	return request({
		url: routeUrl.shiyanqkuser,
		method: 'GET',
		data,
	})
}
export function exportApi(data) {
	return request({
		url: routeUrl.export,
		method: 'POST',
		data,
		responseType: 'arraybuffer',
	})
}
let uploadPath = routeUrl.upload;  // 应用于文件上传
export {
	baseURL,
	uploadPath
}